<div class="blazorise-codeblock">
<div class="html"><pre>
<span class="htmlTagDelimiter">&lt;</span><span class="htmlElementName">Div</span> <span class="htmlAttributeName">Position</span><span class="htmlOperator">=</span><span class="quot">&quot;</span><span class="enum">Position</span><span class="enumValue">.Relative</span><span class="quot">&quot;</span> <span class="htmlAttributeName">Width</span><span class="htmlOperator">=</span><span class="quot">&quot;</span><span class="enum">Width</span><span class="enumValue">.Is100</span><span class="quot">&quot;</span> <span class="htmlAttributeName">Height</span><span class="htmlOperator">=</span><span class="quot">&quot;</span><span class="htmlAttributeValue">Height.Rem(20)</span><span class="quot">&quot;</span><span class="htmlTagDelimiter">&gt;</span>
    <span class="atSign">&#64;</span>ToastRenderFragment( ToasterPlacement.TopStart )

    <span class="atSign">&#64;</span>ToastRenderFragment( ToasterPlacement.TopEnd )

    <span class="atSign">&#64;</span>ToastRenderFragment( ToasterPlacement.BottomStart )

    <span class="atSign">&#64;</span>ToastRenderFragment( ToasterPlacement.BottomEnd )
<span class="htmlTagDelimiter">&lt;/</span><span class="htmlElementName">Div</span><span class="htmlTagDelimiter">&gt;</span>
</pre></div>
<div class="csharp"><pre>
<span class="atSign">&#64;</span>code {
    <span class="keyword">private</span> RenderFragment ToastRenderFragment( ToasterPlacement placement ) =&gt; __builder =&gt;
    {
        &lt;Toaster Placement=<span class="string">&quot;<span class="atSign">&#64;</span>placement&quot;</span> PlacementStrategy=<span class="string">&quot;ToasterPlacementStrategy.Absolute&quot;</span>&gt;
            &lt;Toast Visible Autohide=<span class="string">&quot;false&quot;</span>&gt;
                &lt;ToastHeader&gt;
                    &lt;Strong Margin=<span class="string">&quot;Margin.IsAuto.FromEnd&quot;</span>&gt;Blazorise&lt;/Strong&gt;
                    &lt;Small&gt;<span class="number">11</span> mins ago&lt;/Small&gt;
                    &lt;CloseButton /&gt;
                &lt;/ToastHeader&gt;
                &lt;ToastBody&gt;
                    Hello, world! This <span class="keyword">is</span> a toast message.
                &lt;/ToastBody&gt;
            &lt;/Toast&gt;
        &lt;/Toaster&gt;
    };
}
</pre></div>
</div>
